const { mongo } = require('../mongodb')
const mongoosePaginate = require('mongoose-paginate-v2')

const structure = {
  username: String,
  partner: String,
  random: Number
}

const ColdRecommend = new mongo.Schema(structure, { collection: 'cold' })
const Recommend = new mongo.Schema(structure, { collection: 'hell' })
ColdRecommend.plugin(mongoosePaginate)
Recommend.plugin(mongoosePaginate)
module.exports = {
  cold: mongo.model('cold', ColdRecommend),
  partner: mongo.model('hell', Recommend)
}
